package org.app.web;

import org.app.service.IndexService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Controller;
import org.springframework.web.servlet.ModelAndView;
@Controller
public class IndexController {
	
	@Qualifier("indexServiceImpl")
	@Autowired
	public IndexService indexServiceImpl;
	
	public ModelAndView index(){
		String indx = indexServiceImpl.getIndexStr("this iss index");
		ModelAndView mav = new ModelAndView();
		mav.addObject(indx);
		mav.setViewName("index.jsp");
		return mav;
		
	}
}
